package com.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InpstockExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InpstockExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIn_numIsNull() {
            addCriterion("in_num is null");
            return (Criteria) this;
        }

        public Criteria andIn_numIsNotNull() {
            addCriterion("in_num is not null");
            return (Criteria) this;
        }

        public Criteria andIn_numEqualTo(Integer value) {
            addCriterion("in_num =", value, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numNotEqualTo(Integer value) {
            addCriterion("in_num <>", value, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numGreaterThan(Integer value) {
            addCriterion("in_num >", value, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numGreaterThanOrEqualTo(Integer value) {
            addCriterion("in_num >=", value, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numLessThan(Integer value) {
            addCriterion("in_num <", value, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numLessThanOrEqualTo(Integer value) {
            addCriterion("in_num <=", value, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numIn(List<Integer> values) {
            addCriterion("in_num in", values, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numNotIn(List<Integer> values) {
            addCriterion("in_num not in", values, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numBetween(Integer value1, Integer value2) {
            addCriterion("in_num between", value1, value2, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_numNotBetween(Integer value1, Integer value2) {
            addCriterion("in_num not between", value1, value2, "in_num");
            return (Criteria) this;
        }

        public Criteria andIn_idIsNull() {
            addCriterion("in_id is null");
            return (Criteria) this;
        }

        public Criteria andIn_idIsNotNull() {
            addCriterion("in_id is not null");
            return (Criteria) this;
        }

        public Criteria andIn_idEqualTo(String value) {
            addCriterion("in_id =", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idNotEqualTo(String value) {
            addCriterion("in_id <>", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idGreaterThan(String value) {
            addCriterion("in_id >", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idGreaterThanOrEqualTo(String value) {
            addCriterion("in_id >=", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idLessThan(String value) {
            addCriterion("in_id <", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idLessThanOrEqualTo(String value) {
            addCriterion("in_id <=", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idLike(String value) {
            addCriterion("in_id like", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idNotLike(String value) {
            addCriterion("in_id not like", value, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idIn(List<String> values) {
            addCriterion("in_id in", values, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idNotIn(List<String> values) {
            addCriterion("in_id not in", values, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idBetween(String value1, String value2) {
            addCriterion("in_id between", value1, value2, "in_id");
            return (Criteria) this;
        }

        public Criteria andIn_idNotBetween(String value1, String value2) {
            addCriterion("in_id not between", value1, value2, "in_id");
            return (Criteria) this;
        }

        public Criteria andW_idIsNull() {
            addCriterion("w_id is null");
            return (Criteria) this;
        }

        public Criteria andW_idIsNotNull() {
            addCriterion("w_id is not null");
            return (Criteria) this;
        }

        public Criteria andW_idEqualTo(Integer value) {
            addCriterion("w_id =", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idNotEqualTo(Integer value) {
            addCriterion("w_id <>", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idGreaterThan(Integer value) {
            addCriterion("w_id >", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("w_id >=", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idLessThan(Integer value) {
            addCriterion("w_id <", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idLessThanOrEqualTo(Integer value) {
            addCriterion("w_id <=", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idIn(List<Integer> values) {
            addCriterion("w_id in", values, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idNotIn(List<Integer> values) {
            addCriterion("w_id not in", values, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idBetween(Integer value1, Integer value2) {
            addCriterion("w_id between", value1, value2, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idNotBetween(Integer value1, Integer value2) {
            addCriterion("w_id not between", value1, value2, "w_id");
            return (Criteria) this;
        }

        public Criteria andP_idIsNull() {
            addCriterion("p_id is null");
            return (Criteria) this;
        }

        public Criteria andP_idIsNotNull() {
            addCriterion("p_id is not null");
            return (Criteria) this;
        }

        public Criteria andP_idEqualTo(String value) {
            addCriterion("p_id =", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotEqualTo(String value) {
            addCriterion("p_id <>", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idGreaterThan(String value) {
            addCriterion("p_id >", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idGreaterThanOrEqualTo(String value) {
            addCriterion("p_id >=", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idLessThan(String value) {
            addCriterion("p_id <", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idLessThanOrEqualTo(String value) {
            addCriterion("p_id <=", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idLike(String value) {
            addCriterion("p_id like", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotLike(String value) {
            addCriterion("p_id not like", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idIn(List<String> values) {
            addCriterion("p_id in", values, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotIn(List<String> values) {
            addCriterion("p_id not in", values, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idBetween(String value1, String value2) {
            addCriterion("p_id between", value1, value2, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotBetween(String value1, String value2) {
            addCriterion("p_id not between", value1, value2, "p_id");
            return (Criteria) this;
        }

        public Criteria andIn_numberIsNull() {
            addCriterion("in_number is null");
            return (Criteria) this;
        }

        public Criteria andIn_numberIsNotNull() {
            addCriterion("in_number is not null");
            return (Criteria) this;
        }

        public Criteria andIn_numberEqualTo(Integer value) {
            addCriterion("in_number =", value, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberNotEqualTo(Integer value) {
            addCriterion("in_number <>", value, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberGreaterThan(Integer value) {
            addCriterion("in_number >", value, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberGreaterThanOrEqualTo(Integer value) {
            addCriterion("in_number >=", value, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberLessThan(Integer value) {
            addCriterion("in_number <", value, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberLessThanOrEqualTo(Integer value) {
            addCriterion("in_number <=", value, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberIn(List<Integer> values) {
            addCriterion("in_number in", values, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberNotIn(List<Integer> values) {
            addCriterion("in_number not in", values, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberBetween(Integer value1, Integer value2) {
            addCriterion("in_number between", value1, value2, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_numberNotBetween(Integer value1, Integer value2) {
            addCriterion("in_number not between", value1, value2, "in_number");
            return (Criteria) this;
        }

        public Criteria andIn_timeIsNull() {
            addCriterion("in_time is null");
            return (Criteria) this;
        }

        public Criteria andIn_timeIsNotNull() {
            addCriterion("in_time is not null");
            return (Criteria) this;
        }

        public Criteria andIn_timeEqualTo(Date value) {
            addCriterion("in_time =", value, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeNotEqualTo(Date value) {
            addCriterion("in_time <>", value, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeGreaterThan(Date value) {
            addCriterion("in_time >", value, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("in_time >=", value, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeLessThan(Date value) {
            addCriterion("in_time <", value, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeLessThanOrEqualTo(Date value) {
            addCriterion("in_time <=", value, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeIn(List<Date> values) {
            addCriterion("in_time in", values, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeNotIn(List<Date> values) {
            addCriterion("in_time not in", values, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeBetween(Date value1, Date value2) {
            addCriterion("in_time between", value1, value2, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_timeNotBetween(Date value1, Date value2) {
            addCriterion("in_time not between", value1, value2, "in_time");
            return (Criteria) this;
        }

        public Criteria andIn_remarksIsNull() {
            addCriterion("in_remarks is null");
            return (Criteria) this;
        }

        public Criteria andIn_remarksIsNotNull() {
            addCriterion("in_remarks is not null");
            return (Criteria) this;
        }

        public Criteria andIn_remarksEqualTo(String value) {
            addCriterion("in_remarks =", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksNotEqualTo(String value) {
            addCriterion("in_remarks <>", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksGreaterThan(String value) {
            addCriterion("in_remarks >", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksGreaterThanOrEqualTo(String value) {
            addCriterion("in_remarks >=", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksLessThan(String value) {
            addCriterion("in_remarks <", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksLessThanOrEqualTo(String value) {
            addCriterion("in_remarks <=", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksLike(String value) {
            addCriterion("in_remarks like", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksNotLike(String value) {
            addCriterion("in_remarks not like", value, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksIn(List<String> values) {
            addCriterion("in_remarks in", values, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksNotIn(List<String> values) {
            addCriterion("in_remarks not in", values, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksBetween(String value1, String value2) {
            addCriterion("in_remarks between", value1, value2, "in_remarks");
            return (Criteria) this;
        }

        public Criteria andIn_remarksNotBetween(String value1, String value2) {
            addCriterion("in_remarks not between", value1, value2, "in_remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}